function finalize_main

fprintf(['\n ------------------------ \n END OF PROGRAMME: ' datestr(clock) '\n ------------------------ \n']);

    %
